package com.xiaoyi.dao;

import com.xiaoyi.entity.OrderInfo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OrderInfoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    OrderInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);
    BigDecimal getProjectedRevenue(Integer id);

    List<Map<String, Object>> getPendingOrderList(int id);

    int updateOrderForStatus(Integer orderId,Integer businessId, int id);
    /**
     * 待处理订单数
     * */
    Long pending(Integer businessId);
}